package com.fzn1.leetcode.链表;

/**
 * @program: DataStructure
 * 描述：
 * @author: fzn
 * @create: 2022-11-12 19:30
 **/
public class _237_删除链表中的节点 {

    public class ListNode {
        int val;
        ListNode next;
        ListNode(int x) { val = x; }
    }
    public void deleteNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }
}